<!--
 * @Description: 
 * @Author: 客
 * @Date: 2024-11-05 15:02:20
 * @LastEditors: 客
 * @LastEditTime: 2024-11-05 15:14:25
 * 这课真牢啊
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            font-size: 20px;
            width: 100px;
            height: 100px;
            border: 1px solid red ;
            /* display: inline-block; */
        }
        #div1{
            float: left;
        }
        #div2{
            float: left;
        }
        #div3{
            float: right;
        }
    </style>
</head>
<body>
    <div id="div1">给你机会你也不中用啊</div>
    <div id="div2"> <img src="1.jpg"width="100" height="100"></div>
    <div id="div3"><img src="2.jpg"width="100" height="100"></div>

</body>
</html>